<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/common/global.jsp"%>
<html>
<head>
	<meta charset="utf-8" />
	<title>${proName}</title>
	<meta name="description" content="${proName}" />
	<meta name="keywords" content="${proName}"/>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" href="${ctxPath}/static/css/amazeui.min.css" />
	<link rel="stylesheet" href="${ctxPath}/static/css/style.css" />
	<script type="text/javascript" src="${ctxPath}/static/js/jquery.min.js" ></script>
	<script type="text/javascript" src="${ctxPath}/static/js/amazeui.min.js" ></script>

	<style>
		h2 {font-size:1.1em}
		b  {font-size:1.6em}
		p {font-family: "微软雅黑";font-size: 1.4rem;}
		.comment li {font-size: 1.1rem;  color: #7c7877;}
	</style>
</head>
	<body>
		<div data-am-widget="slider" class="am-slider am-slider-default" data-am-slider='{}' >
			  <ul class="am-slides">
			      <li><img src="${staticServer}/${busiProduct.imgUrl}"> </li>
			      <li><img src="${staticServer}/${busiProduct.imgUrl}"> </li>
			  </ul> 
		</div>
		<div class="detail">
			<h2 >${busiProduct.zhName}</h2>
			<div class="price">
				<b>￥<fmt:formatNumber value="${busiProduct.price}" type="currency" pattern="#.##"/></b><span><%--（积分可抵扣5元）--%></span>
			</div>
			<div class="kucun">
				<%--<p>库存：1000</p>--%>
				<p>运费：免运费</p>
			</div>
		</div>
		<div class="comment">
			<h2>宝贝评价（0）</h2>
			<ul>
				<li><a hhref="">有图（0）</a></li>
				<li><a hhref="">好评（0）</a></li>
				<li><a hhref="">中评（0）</a></li>
				<li><a hhref="">差评（0）</a></li>
			</ul>
		</div>
        <div class="detail-con">
        	<%--<p>  排毒排便－香蕉牛奶汁</p>
	      	<p>  适量加入牛奶调理，可以补充更多钙质，对于正在减肥中的女孩来说，也比较有饱足感。经常失眠或是容易经痛的女孩也可以喝喝看！</p>--%>
	      	<br />
			<p>  ${busiProduct.prodDesc}</p>
	      	<br />
	      <%--	<p>  止咳防晕－芒果汁</p>
	      	<p>  退火利尿－椰子汁</p>
	      	<p>  不过有的人会怕椰子的味道，也因为椰子水生冷寒性，因此女孩们如果想喝椰子水来消暑，或是肠胃不好的人，在喝之前还是要三思！</p>
	      	<p>  水果之王－奇异果汁</p>--%>
	      	<img src="${staticServer}/${busiProduct.imgUrl}" />
        </div>
		<div class="h50"></div>
		<ul class="fixed-btn">
			<li ><a href="javascript:$('#theForm').submit();" class="current" <%--onclick="gotoBuy(this);return false;"--%>>立即购买</a></li>
			<li><a href="${ctxPath}/busiCart/add_do_shoppingCart?id=${busiProduct.id}">加入购物车</a></li>
		</ul>
		<form id="theForm" action="${ctxPath}/busiOrder/confirmPage" method="POST">
			<input type="hidden" name="from" value="productDetail"/>
			<input type="hidden" name="productId" value="${busiProduct.id}"/>
			<input type="hidden" name="orderToken" value="${orderToken}"/>
		</form>
	</body>
	<script>
		/*function addToShoppingCart() {
		    <%--var data = {"totalAmount":${busiProduct.price},"updator":"智哥",--%>
						<%--"prodDesc":${busiProduct.prodDesc}, "memberNo":"WS13411112222",--%>
						<%--"PROD_ID":${busiProduct.id},"creator":"智哥",--%>
						<%--"imgUrl":${busiProduct.imgUrl}--%>
                		<%--};--%>
		    $.ajax({
				url : "${ctxPath}/busiCart/add",
				type : "POST",
				data : { "totalAmount":${busiProduct.price},"updator":"智哥",
                    "prodDesc":${busiProduct.prodDesc}, "memberNo":"WS13411112222",
                    "PROD_ID":${busiProduct.id},"creator":"智哥",
                    "imgUrl":${busiProduct.imgUrl}},
				dataType : "JSON",
                success:function(data){
                    logger.info(JSON.stringify(data));
                    if (data.success == true) {
                        layer.msg('添加成功！'
                            ,{
                                icon: 1,
                                time: 20000, //20s后自动关闭
                                btn: ['确定']
                            }
                            <%--, function(){--%>
                                <%--window.location.href = "${ctxPath}/busiOrder/dataGrid";--%>
                            <%--}--%>
                            );

                    } else {
                        layer.msg('加入购物车失败！', {icon: 1});
                    }
                },
                error:function(data){
                    logger.error(JSON.stringify(data));
                }

			});

        }*/

	</script>
</html>
